#include"eFlashOpt.h"




void  eFlashOptInit(void)
{
	FLASH_Erase(EEPROM_ADDR);

}






void STMFLASH_Write(uint32_t WriteAddr,uint32_t *pBuffer,uint32_t NumToWrite)	
{ 

		FLASH_Write(EEPROM_ADDR+WriteAddr, pBuffer, NumToWrite);
} 


void STMFLASH_Read(uint32_t ReadAddr,uint32_t *pBuffer,uint32_t NumToRead)   	
{
uint32_t i;
	for(i =0;i!= NumToRead;i++)
		{
	 pBuffer[i]= *((volatile uint32_t *)(EEPROM_ADDR + i*4));
		}
}
